﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class UserMemberInfoConfig : EntityTypeConfiguration<UserMemberInfo>
    {
        public UserMemberInfoConfig()
        {
            ToTable("Himall_Members");
            Property(item => item.UserName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Password).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PasswordSalt).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Nick).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Email).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.RealName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.CellPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.QQ).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Address).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Photo).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Remark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.PayPwd).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PayPwdSalt).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Occupation).HasColumnType("varchar").HasMaxLength(20);
        }
    }
}
